#ifndef DEVFB_H
#define DEVFB_H

#include <linux/fb.h>
#include "platform.h"


typedef struct DevFb {
                    const char* node;
                            int handle;
                        Buffer* buffer;
                   unsigned int bufferNumber;
       struct fb_fix_screeninfo fbfixinfo;
       struct fb_var_screeninfo fbvarinfo;
} DevFb;

typedef struct DevFbConfig {
                    const char* node;
                 //unsigned int bufferNumber;
} DevFbConfig;

extern int DevFb_initialize(DevFb *dev, DevFbConfig *devConfig);

extern int DevFb_uninitialize(DevFb *dev);

extern inline int DevFb_unblank(DevFb* dev);

#endif // DEVFB_H
